import java.util.Scanner;

/**
 * @author Sudarsan This Class Provides a wraper for the class Scanner
 * 
 */
public class KeyBoard {

	private static Scanner SCANNER = new Scanner(System.in);

	/**
	 * @param message
	 * @return int
	 * 
	 *         This method is similar to scanner.nextInt(), accept an Integer at
	 *         run time
	 * 
	 */
	public static int readInt(String message) {
		System.out.print(message);
		return SCANNER.nextInt();
	}

	/**
	 * @param message
	 * @return String
	 * 
	 *         This method is similar to scanner.next(), accepts a String at
	 *         runtime
	 */
	public static String readString(String message) {
		System.out.print(message);
		return SCANNER.next();
	}

	/**
	 * @param message
	 * @return double
	 * 
	 *         This method is similar to scanner.nextDouble(), accepts a double
	 *         at runtime
	 */
	public static double readDouble(String message) {
		System.out.print(message);
		return SCANNER.nextDouble();
	}

	/**
	 * @param message
	 *            This method is similar to System.out.println() and prints a
	 *            String
	 */
	public static void write(String message) {
		System.out.println(message);
	}

	/**
	 * @param message
	 *            This method is similar to System.out.println() and prints an
	 *            int.
	 */
	public static void write(int message) {
		System.out.println(message);
	}

	/**
	 * @param message
	 *            This method is similar to System.out.println() and prints a
	 *            double.
	 */
	public static void write(double message) {
		System.out.println(message);
	}

}
